<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/30
 * Time: 10:49
 */
namespace app\index\service;
class DataReturnService
{
    public static function returnOk($data='', $msg='')
    {
        return [
            'code'  => 666,
            'msg'	=> $msg,
            'data'  => $data,
        ];
    }

    public static function returnError($code=0, $msg='',$data='')
    {
        return [
            'code'  => $code,
            'msg'	=> $msg,
            'data'  => $data,
        ];
    }
}